package zero.tech.games.pdk.data.entity;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class PlayerData {
	private int uid;//玩家id
	private final List<Card> outs=new ArrayList<Card>();//出牌集合
	private final Map<Integer,Card> hands=new HashMap<Integer,Card>();//手牌集合
	private int zhadan_count;//炸弹数量
	
	public PlayerData(int uid, List<Card> list) {
		this.uid=uid;
		for(Card card:list) {
			hands.put(card.getCardId(), card);
		}
	}
	public int getUid() {
		return uid;
	}
	public void setUid(int uid) {
		this.uid = uid;
	}
	public Map<Integer, Card> getHands() {
		return hands;
	}
	public List<Card> getOuts() {
		return outs;
	}
	public int getZhadan_count() {
		return zhadan_count;
	}
	public void setZhadan_count(int zhadan_count) {
		this.zhadan_count = zhadan_count;
	}
}
